﻿using Application.Features.Users.DTOs;

namespace Application.Features.Auth.DTOs;

/// <summary>
/// 登录结果
/// </summary>
public class LoginOutput
{
    /// <summary>
    /// 用户名
    /// </summary>
    public string Username { get; set; }

    /// <summary>
    /// 用户信息
    /// </summary>
    public UserOutput UserInfo { get; set; }

    /// <summary>
    /// 角色组
    /// </summary>
    public List<string>? Roles { get; set; } = new List<string>();

    /// <summary>
    /// 访问令牌
    /// </summary>
    public string AccessToken { get; set; }

    /// <summary>
    /// 刷新令牌
    /// </summary>
    public string RefreshToken { get; set; }

    /// <summary>
    /// 访问令牌过期时间
    /// </summary>
    public string Expires { get; set; }
}
